<script>
export default {
  // 对接重定向路由配置，查看router/index文件
  created() {
    const { params, query } = this.$route
    const { path } = params
    this.$router.replace({ path: '/' + path, query })
  },
  // eslint-disable-next-line space-before-function-paren
  render: function (h) {
    return h() // avoid warning message
  }
}
</script>
